// Bring out your Dead - White Wolf character Management System.
// Copyright (C) 2008 Adam Ness
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

using System;
using System.Drawing;
using System.Windows.Forms;
using Boyd.Model;

namespace Boyd.View
{
	/// <summary>
	/// Description of CharacterWindow.
	/// </summary>
	public partial class CharacterWindow : Form
	{
		private Character character;
		
		public CharacterWindow()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		public static void Main( String[] args ) {
			CharacterWindow window = new CharacterWindow();
			Character c = new Character();
			c.Name = "Adam Ness";
			c.Intelligence.Rating = 5;
			c.Wits.Rating = 4;
			c.Dexterity.Rating = 2;
			window.Character = c;
			Application.Run(window);
		}

		public Character Character {
			private get { return character; }
			set { 
				character = value;
				attributePanel.Character = value;
				skillPanel.Character = value;
				meritPanel.Character = value;
			}
		}

		
		void NewMenuItemClick(object sender, EventArgs e)
		{
						
		}
				
		void QuitMenuItemClick(object sender, EventArgs e)
		{
			Application.Exit();
		}
	}
}
